package com.hpeng.sys.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Component;

import com.hpeng.sys.dao.SysUserAuthDao;
import com.hpeng.sys.model.SysUserAuth;

@Component("sysUserAuthDao")
public class SysUserAuthDaoImpl implements SysUserAuthDao {

	public List<SysUserAuth> getSysUserAuths() {
		return (List<SysUserAuth>) hibernateTemplate.find("from SysUserAuth");
	}

	public void save(SysUserAuth sysUserAuth) {
		hibernateTemplate.save(sysUserAuth);
	}

	@Resource
	private HibernateTemplate hibernateTemplate;
}